const forest={
    location:'Sweden',
    animals:3,
    animalsTypes:['Lions','Tigers','Bears']
};

const {location:lo,animals='未命名',animalsTypes,nickname='未命名'} =forest;//es6结构
// console.log(location); 
console.log(lo,animals, nickname); //Sweden undefined

const [lions,tigers,bears]=animalsTypes;
console.log(lions,tigers,bears);